﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace NextGenSystems.WHMCS
{
    [DataContract()]
    public class GetClientsRS : WHMCSBASE
    {
        #region Attributes

        private int _TotalResults;
        private int _StartNumber;
        private int _NumReturned;
        private List<Client> _Clients;

        #endregion

        #region Properties

        [DataMember()]
        public List<Client> Clients
        {
            get { return _Clients; }
            set
            {
                if (_Clients != value)
                {
                    _Clients = value;
                }
            }
        }

        [DataMember()]
        public virtual int TotalResults
        {
            get { return _TotalResults; }
            set
            {
                if (_TotalResults != value)
                {
                    _TotalResults = value;
                    NotifyPropertyChanged("TotalResults");
                }
            }
        }

        [DataMember()]
        public virtual int StartNumber
        {
            get { return _StartNumber; }
            set
            {
                if (_StartNumber != value)
                {
                    _StartNumber = value;
                    NotifyPropertyChanged("StartNumber");
                }
            }
        }

        [DataMember()]
        public virtual int NumReturned
        {
            get { return _NumReturned; }
            set
            {
                if (_NumReturned != value)
                {
                    _NumReturned = value;
                    NotifyPropertyChanged("NumReturned");
                }
            }
        }

        #endregion
    }

    public class Client
    {
        #region Attributes

        private string _Firstname;
        private string _Lastname;
        private string _Companyname;
        private string _Email;

        #endregion

        #region Properties

        [DataMember()]
        public string Firstname
        {
            get { return _Firstname; }
            set
            {
                if (_Firstname != value)
                {
                    _Firstname = value;
                }
            }
        }

        [DataMember()]
        public string Lastname
        {
            get { return _Lastname; }
            set
            {
                if (_Lastname != value)
                {
                    _Lastname = value;
                }
            }
        }

        [DataMember()]
        public string Companyname
        {
            get { return _Companyname; }
            set
            {
                if (_Companyname != value)
                {
                    _Companyname = value;
                }
            }
        }

        [DataMember()]
        public string Email
        {
            get { return _Email; }
            set
            {
                if (_Email != value)
                {
                    _Email = value;
                }
            }
        }

        #endregion
    }
}
